package service.impl;

import dao.RegisterDao;
import dao.impl.RegisterDaoimpl;
import service.RegisterService;

import java.sql.SQLException;

public class RegisterServiceimpl implements RegisterService {
      RegisterDao Dao=new RegisterDaoimpl();
    @Override
    public int Register(String username, String password, String full_name,String role,String sex,String facePhone) throws SQLException, ClassNotFoundException {
        return Dao.Register(username, password, full_name,role,sex,facePhone);
    }
    @Override
    public boolean studentAdd(String name, String gender,String facePhone) throws SQLException, ClassNotFoundException {
        return Dao.studentAdd(name,gender,facePhone);
    }
}
